<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页模板</title>
</head>
<body>
    <!-- 头部 -->
    <div class="wall" th:fragment="top">
        <div class="title">
            <span class="fl">欢迎来到少儿活动中心管理系统 ！</span>
            <span class="fr">
                <a th:href="@{${session.username==null?'/login':'javascript:void(0);'}}"
                   target="_self"><img th:src="@{/images/index_03.png}">[[${#strings.defaultString(session.username,"请登录")}]]</a>
                <a th:href="@{/logout}" target="_self"><img th:src="@{/images/index_05.png}">退出</a>
            </span>
            <div class="clear"></div>
        </div>
        <div class="logo">
            <span><img th:src="@{/images/logo.png}"></span>
        </div>
    </div>
    <!-- 导航栏 -->
    <div class="main_left" th:fragment="left">
        <dl th:each="menus : ${session.userMenu}">
            <dt>[[${menus.name}]]</dt>
            <dd th:if="${!#lists.isEmpty(menus.children)}" th:each="menu : ${menus.children}"><a th:href="@{${menu.url}}" target="right">[[${menu.name}]]</a></dd>
        </dl>
    </div>
    <!-- 欢迎页 -->
    <div class="main_right" th:fragment="right">
        <iframe th:name="right" class="main_right_fr" noresize="noresize" th:src="@{/welcome.html}">
        </iframe>
    </div>
    <!-- 底部 -->
    <div th:fragment="bottom">
        <div class="main_bottom">北京市海淀区少儿活动中小心</div>
    </div>
</body>
</html>